<!DOCTYPE html>
<html>
{include file="public/head" /}
<body>
<div class="box-body">
        <form id="myform" class="myform form-horizontal"  method="post">
        <input type="hidden" name="link_id" value="{$info['link_id']|default=''}">
          <div class="row">
            <div class="col-md-12">
               <div class="input-group margin">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">连接名称：</span>
                </div>
                <!-- /btn-group -->
                <input type="text" class="form-control" name="link_name" value="{$info.link_name|default=''}"  autocomplete="off"  required="required" placeholder="用户名必填">
              </div>              
               <div class="input-group margin">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">连接地址：</span>
                </div>
                <!-- /btn-group -->
                <input type="url" class="form-control" name="link_url" value="{$info.link_url|default=''}"  autocomplete="off" required="required" placeholder="网址必填">
              </div> 
               <div class="input-group margin">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">LOGO：</span>
                </div>
                <!-- /btn-group -->
                <input id="c-image" class="form-control" size="50" name="link_logo" type="text" value="{$info['link_logo']|default=''}">
<span class="input-group-btn">
                      <button type="button" class="btn btn-primary btn-flat plupload" id="plupload-image" data-input-id="c-image" data-mimetype="image/*"  data-multiple="false" data-preview-id="p-image"><i class="fa fa-upload"></i> 上传</button>
                    </span>
              </div>
               <div class="input-group margin">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">连接类型：</span>
                </div>
                <!-- /btn-group -->
                <select name="link_type" class="form-control select2" style="width:100%">
                        <option value="1">文字连接</option>
                        <option value="2" {eq name="info.link_type" value="2"}selected{/eq}>图片连接</option>
                    </select>
              </div>

               <div class="input-group margin">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-title">连接内容：</span>
                <span class="form-left-title-hide"></span>
                </div>
                <!-- /btn-group -->
               <textarea name="link_remark" class="form-control" style="height: 150px">{$info.link_remark|default=''}</textarea>
                </div>
               <div class="input-group margin">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">连接排序：</span>
                </div>
                <!-- /btn-group -->
               <input type="text" class="form-control" name="link_oid" value="{$info.link_oid|default='0'}" autocomplete="false" placeholder="越小越前面" style="text-align:center; width:auto">
              </div>               
                                                                                              
               <div class="input-group margin">
                <div class="input-group-btn">
                <span class="btn btn-default form-left-btn">连接状态：</span>
                </div>
                <!-- /btn-group -->
                <select name="link_status" class="form-control select2 select2-hidden-accessible" style="width: 100%;" tabindex="-1" aria-hidden="true">
          <option value="1">显示</option>
          <option value="0" {eq name="info.link_status" value="0" }selected{/eq}>隐藏</option>
                </select>
              </div>   
              
                                                                     
            </div>          
          </div>
          <!-- /.row -->
        <div class="box-footer {notempty name=":request()->param('dialog')"}hidden{/notempty} layer-footer">
          <div  class="footer-btn">
               <button type="submit" class="btn btn-success btn-embossed">确定</button>
               <button type="reset" class="btn btn-default btn-embossed">重置</button>
               {notempty name=":request()->param('dialog')"}
               <button type="reset" class="btn btn-primary btn-embossed btn-close" onClick="layer.closeAll();"> 关闭</button>
               {/notempty}
            </div>
       </div>
       <!-- /.box-footer -->     
</form>
</div>

{include file="public/footer" /}
<!-- /.box-body -->    
<script type="text/javascript">
$(document).ready(function(){
	zanpian.cms.all();	
	
});	
</script>	
</body>
</html>
